package models

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	ArticleID  int64  `gorm:"column:article_id;type:int;" json:"article_id"`
	Title      string `gorm:"column:title;type:varchar(100);" json:"title"`
	AuthorName string `gorm:"column:author_name;type:varchar(50);" json:"author_name"`
	Content    string `gorm:"colum:content;type:text;" json:"content"`
	Partition  string `gorm:"column:partition;type:varchar(50)" json:"partition"`
}

func (table *Article) TableName() string {
	return "article"
}
